<?php
/* @var $this NotificationController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Notifications',
);
/*
$this->menu=array(
	array('label'=>'Create Notification', 'url'=>array('create')),
	array('label'=>'Manage Notification', 'url'=>array('admin')),
);*/
?>

<h1><?php echo $opt; ?> Price Quote Notifications</h1>
<?php 
if ($opt=='Unread'){
echo CHtml::link('View Read',array('viewReadNotif'),array('class'=>'button'));
echo CHtml::link('View All',array('viewAllNotif'),array('class'=>'button'));
}elseif ($opt=='Read'){
echo CHtml::link('View Unread',array('Index'),array('class'=>'button'));
echo CHtml::link('View All',array('viewAllNotif'),array('class'=>'button'));
}else{
echo CHtml::link('View Read',array('viewReadNotif'),array('class'=>'button'));
echo CHtml::link('View Unread',array('Index'),array('class'=>'button'));
}
?>
<?php 
/*
$this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
));
*/ 
?>
<br><br><br><br>
<table class="detail-view">
<tr><th>ID</th><th>Price Quote</th><th>Date/Time Created</th><?php if ($opt=='All') echo'<th>Read</th>'; ?><th></th></tr>
<?php 
if ($opt=='All') foreach($notifications as $notification) echo $this->renderPartial('_view3', array('data'=>$notification)); 
else foreach($notifications as $notification) echo $this->renderPartial('_view2', array('data'=>$notification)); 
?>
</table>